package com.abc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 聊天记录表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:17:40
 */
@Data
@TableName("tb_chat_detail")
@ApiModel(value = "聊天记录表对象", description = "聊天记录表")
public class ChatDetailEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "ID")
    private Long id;
	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
    private Long fromUserId;
	/**
	 * 聊天ID
	 */
	@ApiModelProperty(value = "聊天ID")
    private Long chatId;
	/**
	 * 内容
	 */
	@ApiModelProperty(value = "内容")
    private String content;
	/**
	 * 回复用户ID
	 */
	@ApiModelProperty(value = "回复用户ID")
    private Long toUserId;
	/**
	 * 类型（1：正常聊天，2：其他）
	 */
	@ApiModelProperty(value = "类型（1：正常聊天，2：其他）")
    private Integer type;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**
	 * 状态（1：正常，2：删除）
	 */
	@ApiModelProperty(value = "状态（1：正常，2：删除）")
    private Integer status;

	private String fromAvatar;

	private String fromUsername;

	private String fromNickname;

	private String toAvatar;

	private String toUsername;

	private String toNickname;

	private String fileList;

}
